package com.ruoyi.jy.mapper;

import java.util.List;
import com.ruoyi.jy.domain.Speciality;
import org.apache.ibatis.annotations.Mapper;

/**
 * 专业模块Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-08
 */
@Mapper
public interface SpecialityMapper
{
    /**
     * 查询专业模块
     *
     * @param spid 专业模块主键
     * @return 专业模块
     */
    public Speciality selectSpecialityBySpid(Long spid);

    /**
     * 查询专业模块列表
     *
     * @param speciality 专业模块
     * @return 专业模块集合
     */
    public List<Speciality> selectSpecialityList(Speciality speciality);

    /**
     * 新增专业模块
     *
     * @param speciality 专业模块
     * @return 结果
     */
    public int insertSpeciality(Speciality speciality);

    /**
     * 修改专业模块
     *
     * @param speciality 专业模块
     * @return 结果
     */
    public int updateSpeciality(Speciality speciality);

    /**
     * 删除专业模块
     *
     * @param spid 专业模块主键
     * @return 结果
     */
    public int deleteSpecialityBySpid(Long spid);

    /**
     * 批量删除专业模块
     *
     * @param spids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSpecialityBySpids(Long[] spids);

    List<Speciality> getCollegeSpecialitys(Long coid);
}
